﻿<%@ Page Title="" Language="C#" MasterPageFile="~/site.master" AutoEventWireup="true"
    CodeBehind="Checkout.aspx.cs" Inherits="Commerce.CSK.Web.Checkout" %>

<%@ Register Src="~/Controls/CartView.ascx" TagName="CartView" TagPrefix="csk" %>
<%@ Register Src="~/Controls/AddressControl.ascx" TagName="AddressControl" TagPrefix="csk" %>
<%@ Register Src="~/Controls/ValidatedTextBox.ascx" TagName="ValidatedTextBox" TagPrefix="csk" %>
<%@ Register Src="~/Controls/CreditCardInfo.ascx" TagName="CreditCardInfo" TagPrefix="csk" %>
<%@ Register src="~/Controls/OrderView.ascx" tagname="OrderView" tagprefix="csk" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:UpdatePanel ID="WizardUpdatePanel" runat="server">
        <ContentTemplate>
            <asp:Wizard ID="CheckoutWizard" runat="server" StepStyle-VerticalAlign="Top" 
                OnFinishButtonClick="CheckoutWizard_FinishButtonClick" ActiveStepIndex="0" 
                onactivestepchanged="CheckoutWizard_ActiveStepChanged">
                <StepStyle HorizontalAlign="Left" VerticalAlign="Top" />
                <WizardSteps>
                    <asp:WizardStep Title="Review Cart" runat="server" ID="ReviewCartStep">
                        <h3>
                            Your Cart</h3>
                        <csk:CartView ID="ReviewCart" runat="server" />
                    </asp:WizardStep>
                    <asp:WizardStep Title="Shipping Address" runat="server" ID="ShippingAddressStep">
                        <csk:AddressControl ID="ShippingAddressEntry" runat="server" EditMode="true" Legend="Shipping Address" />
                    </asp:WizardStep>
                    <asp:WizardStep Title="Billing Information" runat="server" ID="BillingInfoStep">
                        <csk:AddressControl ID="BillingAddressEntry" runat="server" EditMode="true" Legend="Billing Address" />
                        <csk:CreditCardInfo ID="CreditCardEntry" runat="server" />
                    </asp:WizardStep>
                    <asp:WizardStep Title="Submit Order" StepType="Finish">
                        
                        <csk:OrderView ID="orderReview" runat="server" />
                        
                    </asp:WizardStep>
                    <asp:WizardStep StepType="Complete">
                    Thank you for your order!
                    </asp:WizardStep>
                </WizardSteps>
                <SideBarStyle VerticalAlign="Top" />
            </asp:Wizard>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
